<div class="frame">
  <div class="title">
    <p>创建相册</p>
    <%= link_to_function image_tag("valleyer/closeAlbum.jpg"), "createHide();" %>
  </div>
  <% remote_form_for :album,
      :update => "subject",
      :url => valleyers_show_album_url(@album),
      :method => :put,
      :complete => "createHide();",
      :html => {
      :id => "edit_album_form"
      } do |f| %>
  <div class="message">
    <dl>
      <%= f.hidden_field :author_id %>
      <dt>名称：</dt><dd><%= f.text_field :name, :class => "text" %></dd>
      <dt>分类：</dt>
      <dd>
        <%= text_field_with_auto_complete("document_type",
             :name,{
             }, {
               :url => auto_complete_document_types_url,
               :with => "'&name=' + $F('document_type_name') ",
               :method =>:get,
               :skip_style => true
             }) %>
      </dd>
    </dl>
    <dl class="describe"><dt>描述：</dt><dd><%= f.text_area :remark %></dd></dl>
  </div>
  <div class="button">
    <%= link_to_function image_tag("valleyer/fixedAlbum.jpg"), "$('edit_album_form').onsubmit()", :class => "fix" %>
    <%= link_to_function image_tag("valleyer/cancelAlbum.jpg"), "createHide();" %>
  </div>
  <% end %>
</div>